# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dsfs
pkgver=36.8e9f8e9
pkgrel=6
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
pkgdesc='A fully functional File inclusion vulnerability scanner (supporting GET and POST parameters) written in under 100 lines of code.'
arch=('any')
url='https://github.com/stamparm/DSFS'
license=('custom:unknown')
depends=('python')
makedepends=('git')
source=("$pkgname::git+https://github.com/stamparm/DSFS.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

